package components.dialogs.brush
{
	import UIFree.uif_component;
	
	import components.brush.c_baseBrush;
	import components.brush.c_colorSelectEraser;
	import components.brush.c_spotBrush;
	import components.dialogs.c_propertyDialog;
	
	import flash.events.Event;
	
	public class c_spotBrushParams extends c_baseBrushParams {
		public function c_spotBrushParams(parent: uif_component, a_brush: c_spotBrush, a_title: String='') {
			super(parent, a_brush, a_title);
		}
		
		override protected function propertyList(a_brush: c_baseBrush):Array {
			return [
				{
					title	: 'Радиус',
					type	: c_propertyDialog.PTYPE_NUMBER,
					value	: (a_brush as c_spotBrush).radius - 1
				}
			]
		}		
		
		override protected function doChange(e: Event): void {
			(brush as c_spotBrush).radius = values[0].value + 1;
		}
	}
}